package com.cxl.autocode.data;

import java.util.List;

import com.summer.core.dao.impl.FieldDaoImpl;
import com.summer.core.entity.Field;

public class FieldInfo extends SessionHibernateFactory<FieldDaoImpl>{
	
	

	
	/**
	 * 初始化
	 */
	public FieldInfo()
	{
		dao=new FieldDaoImpl();
		setFactory(getFactory());
	}
	
	
	public List<Field> list;
	
	
	public List getList(String tableid)
	{
		list=dao.getList("table.id",tableid);
		return list;
	}
	
	public static void main(String[] args) {
		FieldInfo info=new FieldInfo();
		//info.setFactory();
		info.getList("com.cxl.price.bean.Goods");
		//XmlBeanFactory beanFactory=new XmlBeanFactory(new ClassPathResource("applicationContext.xml"));
		
		
	}
	
	
	
}
